Posts

Showing posts from June, 2021

c program notes

Image
  what is an assignment operator? ans.   An  assignment operator  is an operator used to assign a new value to a variable, property, event, or indexer element in the C# programming language. = is assignment operator when we use == means we are comparing both the values and it is equal to operator we should use "abs" before the result of any subtraction or multiplication or addition so that it would be only positive c program to find the grades of students using if statement? #include <stdio.h> int main() {     int marks;     printf("Enter your marks:");     scanf("%d",& marks);     if(100>marks&&marks>=90)     {         printf("your grade is A");     }      if(90>marks&&marks>=80)     {         printf("your grade is B");     }      if(80>marks&&marks>=70)    ...