Advantages & Disadvantages of Reading Literature Pros and Cons

Advantages & Disadvantages of Reading Literature

  • May 4, 2021
  • 0 Comments

Literature is one of the best way to express feelings, emotions and imagination. This also helps to breakdown the stereotypes of the society and culture. Along with that it also let us to express our own understanding about different things and subject matters. That exactly called as a philoshopy. Literature is any collection of a […]

Inline Function and Its Use Programming

C++ – Inline Function and Its Use

  • May 4, 2021
  • 0 Comments

To minimize the time, an inline function is used. When there are only two or three statements, an inline f() is used. The f() is copied into the main function after it is called. You must place the keyword inline before the function name and define the function before calling it. The compiler ignores the […]

Convert Entered Number of Days into Years, Months and Days Programming

C – Convert Entered Number of Days into Years, Months and Days

  • May 4, 2021
  • 0 Comments

C – Convert Entered Number of Days into Years, Months, and Days C Code #include <stdio.h>#include <conio.h>void main(){ int d,year,month,day,remd; clrscr(); printf(“Enter the number of days to convert:”); scanf(“%d”,&d); year=d/365; remd=d%365; month=remd/30; day=remd%30; printf(“Year=%dnMonth=%dnDay=%d”,year,month,day); getch();}

Find Total, Percentage and Division of Student Programming

C – Find Total, Percentage and Division of Student

  • May 4, 2021
  • 0 Comments

Write a program to find the division of a student by asking 5 subjects numbers Write a program to find Total and percentage by entering 5 subject marks of a student. C Code #include <stdio.h>#include <conio.h>void main(){ int sub1, sub2, sub3, sub4, sub5, total; float per; printf(“Enter marks of 5 subjects:”); scanf(“%d%d%d%d%d”,&sub1,&sub2, &sub3, &sub4, &sub5); […]

Find Greater Number by Using Nested If Else Programming

C – Find Greater Number by Using Nested If Else

  • May 4, 2021
  • 0 Comments

Write a program to find greater number by using nested if else. C Code #include <stdio.h>#include <conio.h>void main(){ int number1; int number2; printf(“Enter two integer numbers :”); scanf(“%d%d”, &number1, &number2); if(number1>number2) printf(“First number is larger”); else if(number1<number2) printf(“second number is larger than first number”); else printf(“both numbers are equal”); getch();} Output