Arundhathi is a very brilliant girl. She has completed her Mathemtics exam. Mathematics is her favourite subject. She is eagerly waiting for her marks. Her mathematics professor, Mr.Ben need to upload the mark of student. Can you help him out for the same. He needs to provide the id of a student and his/ her mark along with that.
He needs to provide the id of a student and his/ her mark along with that. Using C++ programming language.
Answers
C++:
#include<iostream>
using namespace std;
int main()
{
float cgpa;
cin>>cgpa;
cout<<cgpa;
return 0;
}
In some other languages:
Python:
cgpa = float(input()) #reading cgpa from Ben
print(cgpa) #printing the cgpa extracted for Arundhathi
Java:
import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
float cgpa = scan.nextFloat();
System.out.println(cgpa);
}
}
Learn more:
Raju has a square-shaped puzzle made up of small square pieces containing numbers on them. He wants to rearrange the puzzle by changing the elements of a row into a column element and column element into a row element. Help Raju to solve this puzzle
https://brainly.in/question/16956126
Write a Python function sumsquare(l) that takes a nonempty list of integers and returns a list [odd,even], where odd is the sum of squares all the odd numbers in l and even is the sum of squares of all the even numbers in l.
https://brainly.in/question/15473120